// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import fastclick from '../node_modules/fastclick/lib/fastclick'
import setHtmlFontSize from '@/assets/config/setHtmlFontSize'
import VueAwesomeSwiper from 'vue-awesome-swiper'
import store from './store'
import './assets/style/border.css'
import './assets/style/reset.css'
import '@/assets/style/iconfont.css'
import 'swiper/dist/css/swiper.css';

Vue.config.productionTip = false
fastclick.attach(document.body)
Vue.use(VueAwesomeSwiper)
setHtmlFontSize();
window.onresize = function () {
  setHtmlFontSize();
}
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  // template: '<App/>'  也可以这样写 默认是这样的 也就是相当于render函数渲染方式
  render: function (createElement, context) {
    return createElement(App)
  }
})
